<template>
	<view class="">
		创建demo页面
		<view class="" @click="goTo">
			跳转到demo2
		</view>
		<view class="" @click="goIndex">
			跳转到首页
		</view>
	</view>
</template>

<script setup>
	function goTo(){
		uni.navigateTo({
			url:'/pages/demo2/demo2'
		})
	}
	function goIndex(){
		uni.reLaunch({ 
			url:'/pages/index/index'
		})
	}
</script>

<style lang="scss" scoped>
	
</style>
